3.34 \(\int x^2 \sin ^2(a+\frac {3}{2} \sqrt {-\frac {1}{n^2}} \log (c x^n)) \, dx\)

Optimal. Leaf size=76 \[ -\frac {1}{24} x^3 e^{-2 a \sqrt {-\frac {1}{n^2}} n} \left (c x^n\right )^{3/n}-\frac {1}{4} x^3 e^{2 a \sqrt {-\frac {1}{n^2}} n} \log (x) \left (c x^n\right )^{-3/n}+\frac {x^3}{6} \]

[Out]

1/6*x^3-1/24*x^3*(c*x^n)^(3/n)/exp(2*a*n*(-1/n^2)^(1/2))-1/4*exp(2*a*n*(-1/n^2)^(1/2))*x^3*ln(x)/((c*x^n)^(3/n
))

________________________________________________________________________________________

Rubi [A]  time = 0.08, antiderivative size = 76, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.071, Rules used = {4493, 4489} \[ -\frac {1}{24} x^3 e^{-2 a \sqrt {-\frac {1}{n^2}} n} \left (c x^n\right )^{3/n}-\frac {1}{4} x^3 e^{2 a \sqrt {-\frac {1}{n^2}} n} \log (x) \left (c x^n\right )^{-3/n}+\frac {x^3}{6} \]

Antiderivative was successfully verified.

[In]

Int[x^2*Sin[a + (3*Sqrt[-n^(-2)]*Log[c*x^n])/2]^2,x]

[Out]

x^3/6 - (x^3*(c*x^n)^(3/n))/(24*E^(2*a*Sqrt[-n^(-2)]*n)) - (E^(2*a*Sqrt[-n^(-2)]*n)*x^3*Log[x])/(4*(c*x^n)^(3/
n))

Rule 4489

Int[((e_.)*(x_))^(m_.)*Sin[((a_.) + Log[x_]*(b_.))*(d_.)]^(p_.), x_Symbol] :> Dist[(m + 1)^p/(2^p*b^p*d^p*p^p)
, Int[ExpandIntegrand[(e*x)^m*(E^((a*b*d^2*p)/(m + 1))/x^((m + 1)/p) - x^((m + 1)/p)/E^((a*b*d^2*p)/(m + 1)))^
p, x], x], x] /; FreeQ[{a, b, d, e, m}, x] && IGtQ[p, 0] && EqQ[b^2*d^2*p^2 + (m + 1)^2, 0]

Rule 4493

Int[((e_.)*(x_))^(m_.)*Sin[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*(d_.)]^(p_.), x_Symbol] :> Dist[(e*x)^(m + 1)
/(e*n*(c*x^n)^((m + 1)/n)), Subst[Int[x^((m + 1)/n - 1)*Sin[d*(a + b*Log[x])]^p, x], x, c*x^n], x] /; FreeQ[{a
, b, c, d, e, m, n, p}, x] && (NeQ[c, 1] || NeQ[n, 1])

Rubi steps

\begin {align*} \int x^2 \sin ^2\left (a+\frac {3}{2} \sqrt {-\frac {1}{n^2}} \log \left (c x^n\right )\right ) \, dx &=\frac {\left (x^3 \left (c x^n\right )^{-3/n}\right ) \operatorname {Subst}\left (\int x^{-1+\frac {3}{n}} \sin ^2\left (a+\frac {3}{2} \sqrt {-\frac {1}{n^2}} \log (x)\right ) \, dx,x,c x^n\right )}{n}\\ &=-\frac {\left (x^3 \left (c x^n\right )^{-3/n}\right ) \operatorname {Subst}\left (\int \left (\frac {e^{2 a \sqrt {-\frac {1}{n^2}} n}}{x}-2 x^{-1+\frac {3}{n}}+e^{-2 a \sqrt {-\frac {1}{n^2}} n} x^{-1+\frac {6}{n}}\right ) \, dx,x,c x^n\right )}{4 n}\\ &=\frac {x^3}{6}-\frac {1}{24} e^{-2 a \sqrt {-\frac {1}{n^2}} n} x^3 \left (c x^n\right )^{3/n}-\frac {1}{4} e^{2 a \sqrt {-\frac {1}{n^2}} n} x^3 \left (c x^n\right )^{-3/n} \log (x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [F]  time = 0.29, size = 0, normalized size = 0.00 \[ \int x^2 \sin ^2\left (a+\frac {3}{2} \sqrt {-\frac {1}{n^2}} \log \left (c x^n\right )\right ) \, dx \]

Verification is Not applicable to the result.

[In]

Integrate[x^2*Sin[a + (3*Sqrt[-n^(-2)]*Log[c*x^n])/2]^2,x]

[Out]

Integrate[x^2*Sin[a + (3*Sqrt[-n^(-2)]*Log[c*x^n])/2]^2, x]

________________________________________________________________________________________

fricas [C]  time = 0.48, size = 59, normalized size = 0.78 \[ -\frac {1}{24} \, {\left (x^{6} - 4 \, x^{3} e^{\left (\frac {2 i \, a n - 3 \, \log \relax (c)}{n}\right )} + 6 \, e^{\left (\frac {2 \, {\left (2 i \, a n - 3 \, \log \relax (c)\right )}}{n}\right )} \log \relax (x)\right )} e^{\left (-\frac {2 i \, a n - 3 \, \log \relax (c)}{n}\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*sin(a+3/2*log(c*x^n)*(-1/n^2)^(1/2))^2,x, algorithm="fricas")

[Out]

-1/24*(x^6 - 4*x^3*e^((2*I*a*n - 3*log(c))/n) + 6*e^(2*(2*I*a*n - 3*log(c))/n)*log(x))*e^(-(2*I*a*n - 3*log(c)
)/n)

________________________________________________________________________________________

giac [A]  time = 5.00, size = 1, normalized size = 0.01 \[ +\infty \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*sin(a+3/2*log(c*x^n)*(-1/n^2)^(1/2))^2,x, algorithm="giac")

[Out]

+Infinity

________________________________________________________________________________________

maple [F]  time = 0.08, size = 0, normalized size = 0.00 \[ \int x^{2} \left (\sin ^{2}\left (a +\frac {3 \ln \left (c \,x^{n}\right ) \sqrt {-\frac {1}{n^{2}}}}{2}\right )\right )\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*sin(a+3/2*ln(c*x^n)*(-1/n^2)^(1/2))^2,x)

[Out]

int(x^2*sin(a+3/2*ln(c*x^n)*(-1/n^2)^(1/2))^2,x)

________________________________________________________________________________________

maxima [A]  time = 0.37, size = 47, normalized size = 0.62 \[ -\frac {c^{\frac {6}{n}} x^{6} \cos \left (2 \, a\right ) - 4 \, c^{\frac {3}{n}} x^{3} + 6 \, \cos \left (2 \, a\right ) \log \relax (x)}{24 \, c^{\frac {3}{n}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*sin(a+3/2*log(c*x^n)*(-1/n^2)^(1/2))^2,x, algorithm="maxima")

[Out]

-1/24*(c^(6/n)*x^6*cos(2*a) - 4*c^(3/n)*x^3 + 6*cos(2*a)*log(x))/c^(3/n)

________________________________________________________________________________________

mupad [B]  time = 2.97, size = 92, normalized size = 1.21 \[ \frac {x^3}{6}-\frac {x^3\,{\mathrm {e}}^{-a\,2{}\mathrm {i}}\,\frac {1}{{\left (c\,x^n\right )}^{\sqrt {-\frac {1}{n^2}}\,3{}\mathrm {i}}}\,1{}\mathrm {i}}{12\,n\,\sqrt {-\frac {1}{n^2}}+12{}\mathrm {i}}+\frac {x^3\,{\mathrm {e}}^{a\,2{}\mathrm {i}}\,{\left (c\,x^n\right )}^{\sqrt {-\frac {1}{n^2}}\,3{}\mathrm {i}}\,1{}\mathrm {i}}{12\,n\,\sqrt {-\frac {1}{n^2}}-12{}\mathrm {i}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*sin(a + (3*log(c*x^n)*(-1/n^2)^(1/2))/2)^2,x)

[Out]

x^3/6 - (x^3*exp(-a*2i)/(c*x^n)^((-1/n^2)^(1/2)*3i)*1i)/(12*n*(-1/n^2)^(1/2) + 12i) + (x^3*exp(a*2i)*(c*x^n)^(
(-1/n^2)^(1/2)*3i)*1i)/(12*n*(-1/n^2)^(1/2) - 12i)

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2*sin(a+3/2*ln(c*x**n)*(-1/n**2)**(1/2))**2,x)

[Out]

Timed out

________________________________________________________________________________________